From: Florian Müllner Date: Thu, 15 Sep 2011 08:51:53 +0000 (+0200) Subject: network-agent: Allow entries to activate default action X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7631 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=92024b7e5494f9d685fd35f785999124130f8275;p=gnome-shell.git network-agent: Allow entries to activate default action Currently entries' 'activate' signal is ignored, so hitting enter does not have any effect, even if all required information has been entered. Instead, connect to the 'activate' signal so that hitting enter behaves as if the "OK" button had been pressed. https://bugzilla.gnome.org/show_bug.cgi?id=659133 --- diff --git a/js/ui/networkAgent.js b/js/ui/networkAgent.js index 43fd9a14e..fad9cd11e 100644 --- a/js/ui/networkAgent.js +++ b/js/ui/networkAgent.js @@ -115,6 +115,7 @@ NetworkSecretDialog.prototype = { initialFocusSet = true; } + secret.entry.clutter_text.connect('activate', Lang.bind(this, this._onOk)); secret.entry.clutter_text.connect('text-changed', Lang.bind(this, function() { secret.value = secret.entry.get_text(); if (secret.validate)